package dpatterns.decorator.pizzashop;

import dpatterns.decorator.pizzashop.pizzas.Pizza;
import dpatterns.decorator.pizzashop.pizzas.impl.PlainPizza;
import dpatterns.decorator.pizzashop.toppings.impl.Mozzarella;
import dpatterns.decorator.pizzashop.toppings.impl.Pepperoni;
import dpatterns.decorator.pizzashop.toppings.impl.TomatoSauce;

public class PizzaShop {

	public static void main(String[] args) {
		
		System.out.println("Welcome to the Pizza-Shop!\n");
		
		Pizza pizza = new Pepperoni(new Mozzarella(new TomatoSauce(new PlainPizza())));
		
		/*pizza.addTopping(new TomatoSauce());
		pizza.addTopping(new Mozzarella());
		pizza.addTopping(new Pepperoni());*/
		
		System.out.println("\nIngredients: "+pizza.getDescription());
		System.out.println("Price: "+pizza.getPrice());

	}

}
